.class Lcom/example/m6wmr/StartActivity$3;
.super Ljava/lang/Thread;
.source "StartActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/StartActivity;->getadv()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/StartActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/StartActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    .line 222
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 224
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 226
    new-instance v6, Landroid/os/Message;

    invoke-direct {v6}, Landroid/os/Message;-><init>()V

    .line 227
    .local v6, "msg":Landroid/os/Message;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    iget-object v10, v10, Lcom/example/m6wmr/StartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "/index.php?ctrl=app&action=getnewadv&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 228
    .local v8, "url":Ljava/lang/String;
    const-string v9, "StartActivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "getadv \u83b7\u53d6\u5e97\u94fa\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 229
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    iget-object v9, v9, Lcom/example/m6wmr/StartActivity;->m:Lmyapp/MyApp;

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 230
    .local v7, "str":Ljava/lang/String;
    const-string v9, "Startactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "getadv \u8fd4\u56de\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 232
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 234
    .local v5, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 235
    const-string v9, "msg"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 236
    const/4 v9, 0x6

    iput v9, v6, Landroid/os/Message;->arg1:I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 291
    :goto_0
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    iget-object v9, v9, Lcom/example/m6wmr/StartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 295
    .end local v5    # "json":Lorg/json/JSONObject;
    :goto_1
    return-void

    .line 238
    .restart local v5    # "json":Lorg/json/JSONObject;
    :cond_0
    :try_start_1
    const-string v9, "msg"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 239
    const/4 v9, 0x6

    iput v9, v6, Landroid/os/Message;->arg1:I
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 286
    .end local v5    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 287
    .local v0, "e":Lorg/json/JSONException;
    :try_start_2
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 288
    const/4 v9, 0x6

    iput v9, v6, Landroid/os/Message;->arg1:I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 291
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    iget-object v9, v9, Lcom/example/m6wmr/StartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_1

    .line 241
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v5    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_3
    const-string v9, "msg"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 251
    const-string v9, "appmodule"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 252
    .local v3, "jarray":Lorg/json/JSONArray;
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    const-string v10, "appmodule"

    const-string v11, "name !=\'\' "

    const/4 v12, 0x0

    invoke-virtual {v9, v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 253
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lt v1, v9, :cond_2

    .line 261
    const-string v9, "appadv"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 262
    .local v4, "jarrays":Lorg/json/JSONArray;
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    const-string v10, "appadv"

    const-string v11, "id !=\'\' "

    const/4 v12, 0x0

    invoke-virtual {v9, v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 263
    const/4 v1, 0x0

    :goto_3
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lt v1, v9, :cond_3

    .line 270
    const-string v9, "ztylist"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 272
    .local v2, "jarra":Lorg/json/JSONArray;
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    const-string v10, "ztlist"

    const-string v11, "id !=\'\' "

    const/4 v12, 0x0

    invoke-virtual {v9, v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 273
    const/4 v1, 0x0

    :goto_4
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lt v1, v9, :cond_4

    .line 282
    const/4 v9, 0x7

    iput v9, v6, Landroid/os/Message;->arg1:I
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    .line 290
    .end local v1    # "i":I
    .end local v2    # "jarra":Lorg/json/JSONArray;
    .end local v3    # "jarray":Lorg/json/JSONArray;
    .end local v4    # "jarrays":Lorg/json/JSONArray;
    .end local v5    # "json":Lorg/json/JSONObject;
    :catchall_0
    move-exception v9

    .line 291
    iget-object v10, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    iget-object v10, v10, Lcom/example/m6wmr/StartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 293
    throw v9

    .line 254
    .restart local v1    # "i":I
    .restart local v3    # "jarray":Lorg/json/JSONArray;
    .restart local v5    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_4
    const-string v9, "Startactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "appmodule \u8fd4\u56de\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "name"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 256
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    .line 257
    const-string v10, "insert into appmodule (name,imgurl,is_display) values(?,?,?)"

    .line 258
    const/4 v11, 0x3

    new-array v11, v11, [Ljava/lang/Object;

    const/4 v12, 0x0

    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "name"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x1

    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "imgurl"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x2

    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "is_display"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    .line 256
    invoke-virtual {v9, v10, v11}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 253
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_2

    .line 264
    .restart local v4    # "jarrays":Lorg/json/JSONArray;
    :cond_3
    const-string v9, "Startactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "appadv \u8fd4\u56de\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "name"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 265
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    .line 266
    const-string v10, "insert into appadv (id,name,img,type,activity,param) values(?,?,?,?,?,?)"

    .line 267
    const/4 v11, 0x6

    new-array v11, v11, [Ljava/lang/Object;

    const/4 v12, 0x0

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "id"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x1

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "name"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x2

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "img"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x3

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "type"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x4

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "activity"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x5

    invoke-virtual {v4, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "param"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    .line 265
    invoke-virtual {v9, v10, v11}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 263
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_3

    .line 274
    .restart local v2    # "jarra":Lorg/json/JSONArray;
    :cond_4
    const-string v9, "Startactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "ztlist \u8fd4\u56de\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "name"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 275
    const-string v9, "img----------------------"

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v10

    const-string v11, "img"

    invoke-virtual {v10, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 276
    iget-object v9, p0, Lcom/example/m6wmr/StartActivity$3;->this$0:Lcom/example/m6wmr/StartActivity;

    # getter for: Lcom/example/m6wmr/StartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/StartActivity;->access$2(Lcom/example/m6wmr/StartActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    .line 277
    const-string v10, "insert into ztlist (id,name,img,showtype,is_custom,cx_type) values(?,?,?,?,?,?)"

    .line 278
    const/4 v11, 0x6

    new-array v11, v11, [Ljava/lang/Object;

    const/4 v12, 0x0

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "id"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x1

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "name"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x2

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "img"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x3

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "showtype"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x4

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "is_custom"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x5

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    const-string v14, "cx_type"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    .line 276
    invoke-virtual {v9, v10, v11}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V
    :try_end_4
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 273
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_4
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 297
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 298
    monitor-exit p0

    return-void

    .line 297
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
